<?php

if (isset($_GET['action']) && $_GET['action'] == "remove" && is_allowed(3))  {

	$user_id = $_GET['user_id'];

	$user->remove($user_id);

	$smarty->assign('message', "The user has been removed!");

}

$users = $user->get(-1);

$smarty->assign('users', $users);

$smarty->display('users.tpl', $_SESSION['uid']);

?>